﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;

namespace ModalWizard
{
    public class BusinessData : INotifyPropertyChanged
    {
        string sName;
        DateTime oDob = DateTime.Now;
        double dblHeight;

        public string Name
        {
            get { return sName; }
            set 
            { 
                sName = value;
                NotifyPropertyChanged("Name");
            } 
        }

        public DateTime Dob
        {
            get { return oDob; }
            set 
            { 
                oDob = value;
                NotifyPropertyChanged("Dob");
            }
        }

        public double Height
        {
            get { return dblHeight; }
            set 
            { 
                dblHeight = value;
                NotifyPropertyChanged("Height");
            }
        }



        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;
        
        void NotifyPropertyChanged(string sPropertyName)
        {
            if(PropertyChanged != null)
                PropertyChanged(this, new PropertyChangedEventArgs(sPropertyName));
        }

        #endregion
    }
}
